<%--
  Created by IntelliJ IDEA.
  User: 娜娜
  Date: 2024/12/23
  Time: 21:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.milk.entity.MilkTeaDrinks" %>
<html>
<head>
    <title>修改奶茶饮品</title>
</head>
<body>
<h3>修改奶茶饮品</h3>
<form action="<%=request.getContextPath()%>/drinks/update" method="post">
    <input type="hidden" name="id" value="<%=request.getParameter("id")%>">
    <label for="name">名称</label><input type="text" id="name" name="name" placeholder="请输入奶茶名称" value="<%=((MilkTeaDrinks) request.getAttribute("drink")).getName()%>"><br>
    <label for="category">分类</label><input type="text" id="category" name="category" placeholder="请输入奶茶分类（默认其他）" value="<%=((MilkTeaDrinks) request.getAttribute("drink")).getCategory()%>"><br>
    <label for="price">价格</label><input type="number" id="price" name="price" step="0.01" placeholder="请输入奶茶价格" value="<%=((MilkTeaDrinks) request.getAttribute("drink")).getPrice()%>"><br>
    <label for="description">描述</label><textarea id="description" name="description" placeholder="请输入奶茶描述"><%=((MilkTeaDrinks) request.getAttribute("drink")).getDescription()%></textarea><br>
    <button type="submit">修改</button>
</form>
</body>
</html>
